﻿<%@ Page Title="Gallery" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="Gallery.aspx.cs" Inherits="CoastalClimbing.Gallery" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Gallery</h1>
    <br />
    <br />
    <asp:DataList ID="dtlGallery" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
        <ItemTemplate>
            <asp:HyperLink ID="hyper1" runat="server" NavigateUrl='<%# Eval("ID", "~/GalleryImages.aspx?GalleryID={0}") %>'>
                <table>
                    <tr>
                        <td align="center">
                            <asp:Image ID="imgData" runat="server" ImageUrl='<%# Eval("FILENAME", "http://www.coastalclimbing.com/Images/thumbnail{0}") %>' BorderWidth="0" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <span class="twentyTwoYellowBold"><%# Eval("TITLE") %></span>
                        </td>
                    </tr>
                </table>
            </asp:HyperLink>
        </ItemTemplate>
        <AlternatingItemTemplate>
        <asp:HyperLink ID="hyper1" runat="server" NavigateUrl='<%# Eval("ID", "~/GalleryImages.aspx?GalleryID={0}") %>'>
                <table>
                    <tr>
                        <td align="center">
                            <asp:Image ID="imgData" runat="server" ImageUrl='<%# Eval("FILENAME", "http://www.coastalclimbing.com/Images/thumbnail{0}") %>' BorderWidth="0" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <span class="twentyTwoWhiteBold"><%# Eval("TITLE") %></span>
                        </td>
                    </tr>
                </table>
            </asp:HyperLink>        
        </AlternatingItemTemplate>
    </asp:DataList>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
